package com.sxfq.loansupermarket.backsystem.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 渠道表
 * </p>
 *
 * @author stylefeng
 * @since 2017-07-11
 */
public class Medium extends Model<Medium> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	/**
	 * 排序
	 */
	private Integer num;
	/**
	 * 父部门id
	 */
	private Integer pid;
	/**
	 * 父级ids
	 */
	private String pids;
	/**
	 * 全称
	 */
	private String mediumname;
	/**
	 * 提示
	 */
	private String remarks;
	/**
	 * 版本（乐观锁保留字段）
	 */
	private Integer version;
	private Integer isstauts;

	public Integer getIsstauts() {
		return this.isstauts;
	}

	public void setIsstauts(Integer isstauts) {
		this.isstauts = isstauts;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPids() {
		return pids;
	}

	public void setPids(String pids) {
		this.pids = pids;
	}

	public String getMediumname() {
		return mediumname;
	}

	public void setMediumname(String mediumname) {
		this.mediumname = mediumname;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Dept{" +
				"id=" + id +
				", num=" + num +
				", pid=" + pid +
				", pids=" + pids +
				", mediumname=" + mediumname +
				", remarks=" + remarks +
				", version=" + version +
				", isstauts=" +isstauts+
				"}";
	}
}
